
from django.contrib import admin
from django.urls import path, re_path
from user import views as userView

urlpatterns = [
    re_path(r'^index', userView.index, {"hou": "zheng"},name="hou"),
    # user/参数一/参数二
    re_path(r'^user/(\d+)/(\d+)$', userView.userinfo),
    # ?P 前缀只有Python支持
    # 传参路由  (?P<v1>\d+) 分组字典:  key=v1, value=\d+ {"v1":"\d+"}
    re_path(r'list/(?P<v1>\d+)/(?P<v2>\d+)', userView.userlist),

    path(r'add/user', userView.adduser),
    path(r'add/order', userView.addorder),
    path(r'add/role', userView.addrole),


    path(r'update/user', userView.updateuser),
    path(r'update/order', userView.updateorder),
    path(r'update/role', userView.updaterole),


    path(r'delete/user', userView.deleteuser),


    path(r'select/user', userView.selectuser),
    path(r'select/order', userView.selectorder),
    path(r'select/role', userView.selectrole),


    path(r'temp/tags', userView.tags),
    path(r'temp/mytag', userView.mytag),
    path(r'temp/child', userView.child),
]
